<template>
	<view class="home">
		<rich-text :nodes="content"></rich-text>
	</view>
</template>

<script>
	import {
		mapState,
		mapActions,
		mapMutations
	} from "vuex"
	export default {
		data() {
			return {
				content: ""
			}
		},

		computed: mapState({
			configInfo: state => state.config.configInfo,
		}),
		onReady() {
			console.log(this.configInfo.shop_img_content)

		},
		onLoad(options) {
			if (options.type == 1) {
				this.content = this.configInfo.index_img_content
			} else if (options.type == 2) {
				this.content = this.configInfo.shop_img_content
			} else if (options.type == 3) {
				this.content = this.configInfo.platform_index_img_content
			} else if (options.type == 4) {
				this.content = this.configInfo.cate_img_content
			}
		}
	}
</script>

<style>
	.home {
		width: 100%;
		min-height: 100vh;
		padding: 30rpx;
		background: #fff;
	}
</style>